package com.lht.designPattern.visitor;

import java.util.Date;

/**
 * @author Eric
 * @version 1.0
 * @date 2019-06-27
 */
public class Main {

    public static void main(String[] args){
        Employee employee=new Employee();
        employee.setName("骆宏图");
        employee.setEntryDate(new Date());
        employee.setPrefomance(100D);
        employee.setSalary(10D);

        Boss boss=new Boss();
        Manager manager=new Manager();
        employee.accepted(manager);
        employee.accepted(boss);
    }
}
